#version 150

#extension GL_EXT_texture_array : enable

uniform sampler2DArray Diffuse;
uniform vec3  AmblientColor;

in vec2 TexCoord;
in float Light;
in float TextureIndex;

out vec4 outColor;

void main()
{
	 outColor = texture2DArray( Diffuse, vec3( TexCoord, TextureIndex ) ) + vec4( AmblientColor, 0.0 ) ; 
}